package com.huatai.verity.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @program: ht-system
 * @description: 服务应用实体
 * @author: songxiude
 * @create: 2023-07-21 11:29
 **/
@Data
@TableName("ht_app_service")
@ApiModel(value = "服务应用",description = "服务应用实体")
public class AppService {

	@ApiModelProperty("主键id")
	private Long id;

	@NotBlank(message = "服务应用名称不能为空")
	@ApiModelProperty(value = "服务应用名称",required = true)
	private String serviceName;

	@ApiModelProperty("部署方式")
	private String depWay;

	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间",hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "更新时间",hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;
}
